package com.chinatelecom.ifree.business.service.vote;

import java.util.Map;

import com.chinatelecom.ifree.business.domain.vote.VoteDetail;

public interface VoteService {
	/**
	 * 查询投票结果
	 * @param voteid
	 * @return voteitemid，投票数量
	 * @throws Exception
	 */
	public Map<Long, Integer> getVoteCountByVoteId(long voteid) throws Exception;
	
	/**
	 * 查询投票结果
	 * @param voteid
	 * @param cookie
	 * @return voteitemid，投票数量
	 * @throws Exception
	 */
	public Map<Long, Integer> getVoteCountByVoteIdAndCookie(long voteid  ,String cookie) throws Exception;

	/**
	 * 查询投票项结果
	 * @param voteid
	 * @return voteitemid，投票数量
	 * @throws Exception
	 */
	public int getVoteCountByVoteItemId(long voteitemid) throws Exception;
	/**
	 * 投票保存
	 * @param voteDetail
	 * @throws Exception
	 */
	public void saveVoteDetail(VoteDetail voteDetail) throws Exception;

	
	public void saveVoteDetailList(VoteDetail[] voteDetailArr) throws Exception;
	
	
}
